<?php

class m130125_123240_create_article extends CDbMigration {

	private $_table = 'articles';

	public function safeUp() {
		$columns = array(
			'id'=>'pk',
			'preview'=>'text',
			'value'=>'text',
			'insertTime'=>'datetime',
			'updateTime'=>'datetime',
		);
		$this->createTable($this->_table, $columns);
	}

	public function safeDown() {
		$this->dropTable($this->_table);
	}

}